<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--<script type="text/javascript" src="js/bootstrap.min.js"></script>--%>
<%--<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/ZdCascader.css" type="text/css">
<link rel="stylesheet" href="css/style.css">--%>
<div class="index">
    <div class="index_top" style="position: fixed;z-index: 2">
        <div class="index_top_ width_1200_center">
            <div class="index_top_user position_re fl" style="margin-left: 70px"><p><span class="span11 display_n">
                <a href="user_home.html"><span class="span2"></span></a></span>
                <span class="span21">
                    <c:if test="${loginuser!=null}">
                        <span class="span3"><a>Hi，用户：${loginuser.user_name}</a></span>
                        <a href="#">个人资料</a><a href="#" onclick="logout()">退出</a>
                    </c:if>
                    <c:if test="${loginuser==null}">
                        <span class="span3"><a href="user_login.jsp">Hi，请登录</a></span>
                        <span class="span4"><a href="register.jsp">免费注册</a></span></span></p>
                    </c:if>
                </div>
            <script>
                function logout(){
                    var flag = confirm(`您确定注销吗`);
                    if(flag){
                        location="logout.do";
                    }
                }
            </script>
            <div class="index_top_serve position_re fr"><span class="serve"><a href="javascript:;">客户服务</a></span><div class="serve_problem position_ab display_n"><a href="#">在线客服</a><a href="#">售后服务</a><a href="#">购物指南</a></div></div>
            <div class="index_top_favorite fr"><a href="mycollection.jsp">收藏夹</a></div>
<%--            <div class="index_top_cart fr"><a href="#" class="tbox2" >添加想要</a></div>--%>
            <div class="index_top_order fr"><a href="order.jsp">我的订单</a></div>
        </div>
    </div>
    <div class="index_logo clearfix">
        <div class="index_logo_ width_1200_center">
            <div class="index_logo_logo fl">
                <a href="javascript:;" title="蓝瓜二手车电子商务"><img style="height: 70px;width: 70px;margin-top: 0px;z-index: 3;position: relative" src="images/nangua2.png" title="蓝瓜二手车电子商务" /></a>
            </div>
            <div class="index_logo_city fl">
            </div>
            <div class="index_logo_search" >
                <span class="fr" style="padding-top: 73px;padding-right: 0px"><input id="searchkeys" type="text" class="index_logo_search_input" placeholder="请输入要买的品牌" name="keyword" autocomplete="off"><button class="search_btn" onclick="show(1,12)">搜索</button></span>
                <!--1、在div的class中fr会影响到下一个div浮动 就得这样,2、加一个<div class="hr_5"></div>也可以，如购物车页面3、或者加一个overflow-->
            </div>
        </div>
    </div>
    <div class="index_nav1 clearfix">
        <div class="index_nav1_ width_1200_center">
            <div class="index_nav1_home fl"><a href="index.jsp">首页</a></div>
            <div class="index_nav1_buy fl"><a href="buycar.jsp">买车</a></div>
            <div class="index_nav1_sell fl"><a href="sellcar.jsp">卖车</a></div>
            <div class="index_nav1_assess fl"><a href="#">评估</a></div>
            <div class="index_nav1_serve fl"><a href="#">服务保障</a></div>
            <div class="index_nav1_idea fr" style="float: left"><a href="userhome.jsp">个人中心</a></div>
        </div>
    </div>
</div>

